﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class TiposDeIngrediente : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["CadenaDeConexion"]  = ConfigurationManager.ConnectionStrings["SIG"].ConnectionString;
    }
    protected void LinkButtonNuevo_Click(object sender, EventArgs e)
    {
        FormViewTipoDeIngrediente.Visible = true;
    }

    protected void InsertCancelButton_Click(object sender, EventArgs e)
    {
        limpiarFormulario(); 
    }

    private void limpiarFormulario()
    {
        FormViewTipoDeIngrediente.Controls.Clear();
        FormViewTipoDeIngrediente.Visible = false;
    }
    protected void ObjectDataSourceTipoDeIngrediente_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
    {
        Label1.Text = e.OutputParameters["alert"].ToString();
    }
}

